package com.shisfish.library.Inter;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.shisfish.core.Inter.IModelInter;
import com.shisfish.library.Model.Media;

public interface IMediaInter extends IModelInter<Media> {

	public int countByType(@Param("type") int type);
	
	public List<Map<String, Object>> selectByTypePage(@Param("type") int type, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public Map<String, Object> selectId(@Param("id") int id);
	
	public List<Map<String, Object>> selectByFcode(@Param("fcode") int fcode);

	public int countByCho(@Param("cho") String cho);

	public List<Map<String, Object>> selectByChoPage(@Param("cho") String cho,
			@Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
}
